package com.ashen.boot.admin.project.system.user.model.entity;

import com.hb0730.commons.lang.collection.CollectionUtils;
import lombok.Data;

import java.util.ArrayList;
import java.util.Collection;

/**
 * 用户账号
 *
 * @author bing_huang
 * @since 3.0.0
 */
@Data
public class UserPermissionEntity {

    private static final long serialVersionUID = 1L;

    private String description;

    private String permissionType;

    private Integer isrow;

    private Long id;

    private Integer isall;


    private Collection<String> permissions;

    public void setPermissions(Collection<String> permissions) {
        if (CollectionUtils.isEmpty(permissions)) {
            return;
        }
        this.permissions = new ArrayList<>(permissions);
    }

}
